package com.example.springbootsimpledemo.service;

import org.springframework.stereotype.Service;

import com.example.springbootsimpledemo.model.User;

@Service("UserService")
public class UserService {
    public User findByUsername(User user){
        return customFindByUsername(user.getUsername());
    }

	public User findUserById(String userId) {
        return customFindUserById(userId);
    }

	/**  
	 * @description: TODO
	 * @param userId
	 * @return
	 */  
	
	private User customFindUserById(String userId) {
		User user = new User("1", "Tom", "111111");
		return user;
	}
	
	/**  
	 * @description: TODO
	 * @param username
	 * @return
	 */  
	
	private User customFindByUsername(String username) {
		User user = new User("1", "Tom", "111111");
		return user;
	}
    
}
